
<?php ?>
<html>
    <head> 
        <title>KOMPETENSI</title> 
    </head> 

    <body> 
        <h2>&nbsp; </h2> 
        <h2>Form Pengisian KOMPETENSI</h2> 
        <hr>
        <form method="post" action="../Control/FormGuruMapelInsert.php">
            <div>
                <h2>Form Pengisian </h2>
                <p>Kompetensi Pendidik dan Tenaga Kependidikan</p>
            </div>
            <table border="1" cellpadding="0" cellspacing="0"> 						

                <tr>
                    <td>Nama Mata Pelajaran</td>
                    <td>
                        <select name=mapel>
                                <?php
                                include "../../Koneksi/koneksi.php";
                                $query_limit = mysql_query("select kodeMapel, namaMapel from matapelajaran");
                                while ($row = mysql_fetch_array($query_limit)) {
                                    ?><option value="<?php echo $row['kodeMapel']; ?>"><?php echo $row['namaMapel']; ?></option><?php
                                }
                                ?>
                            </select>
                    </td>
                </tr>
                
                <tr>
                    <td>Nama Pendidik</td>
                    <td>
                        <select name=pendidik>
                                <?php
                                include "../../Koneksi/koneksi.php";
                                $query_limit2 = mysql_query("select nip, nama from pendidik");
                                while ($row2 = mysql_fetch_array($query_limit2)) {
                                    ?><option value="<?php echo $row2['nip']; ?>"><?php echo $row2['nama']; ?></option><?php
                                }
                                ?>
                            </select>
                    </td>
                </tr>
                <tr>
                    
                    <td>
                <li class="buttons">
                    <input type="submit" name="submit" value="Simpan" />
                </li>
                </td>
                </tr> 

            </table>
        </form>
        <hr>
    </body>
</html>